<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.view.*" %>
<%@ page import="com.conversationboard.config.*" %>
<%@ page import="java.util.List"%>
<%@ page import="com.conversationboard.cache.newanswers.NewAnswersThread"%>
<%@ page import="com.conversationboard.site.Site"%> 

<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>

<% 
	List<NewAnswersThread> threads = (List<NewAnswersThread>) request.getAttribute("newquestions");
	User user = (User) request.getAttribute("user");
	Bookmarks bookmarks = user.getBookmarks();
%>


<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Site New Questions</title>
		<link rel="stylesheet" title="Conversation Board" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
		<meta name="ROBOTS" content="NOINDEX"></meta>
		<c:if test="${user.admin}">
			<script src="${contextPath}/Javascript/style.js" type="text/javascript"></script>
		</c:if>
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal()) %>

		<% if (SiteMessage.getMessage() != null) { %>	
		<div class='sitemessage'><%= SiteMessage.getMessage() %></div>
		<% } %>
		<% if (BatchMessage.getMessage() != null) { %>	
		<div class='batchmessage'><%= BatchMessage.getMessage() %></div>
		<% } %>
	
		<%= BookmarksDisplay.display(bookmarks, false) %>
	
		<div class="headingblock">
			<h1 title="Click Here to Customise This View"><a href="${contextPath}/CustomiseSiteNewPostsControllerServlet">Site New <%= Site.getThread() %>s</a></h1>
		</div>
		

		<div class="mainblock">
			<!-- <a href="${contextPath}/newquestions/rss.xml">RSS Feed</a>-->
			<%=	ThreadListDisplay.display(null, threads, user.getLoginId(), OrderedBy.CREATION_DATE) %>
		</div>
		
		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
		
	</body>
	
</html>
